package com.dmgis.qxfw.dataservice.businessservice.common.util;

import org.dom4j.Document;

public class TextMessage extends WeChatMessage {

    public TextMessage() {
    }

    public TextMessage(Document xmlDoc) {
        super(xmlDoc);
        String content = xmlDoc.selectSingleNode("/xml/Content").getText();
        String msgId = xmlDoc.selectSingleNode("/xml/MsgId").getText();
        this.setContent(content);
        this.setMsgId(msgId);
    }

    private String content;
    private String msgId;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }
}
